package com.ht.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ht.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 登录错误表
 */
@Data
@TableName("sys_login_error")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_login_error对象", description="登录错误表")
public class SysLoginErrorVo {

	/**主键*/
	@TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键")
	private String id;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
	private java.util.Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
	private java.util.Date updateTime;
	/**登录IP*/
	@Excel(name = "登录IP", width = 15)
    @ApiModelProperty(value = "登录IP")
	private String ip;
	/**登录用户名*/
	@Excel(name = "登录用户名", width = 15)
    @ApiModelProperty(value = "登录用户名")
	private String username;
	/**封禁状态*/
	@Excel(name = "封禁状态", width = 15)
    @ApiModelProperty(value = "封禁状态")
    @Dict(dicCode = "login_banned_state")
	private String bannedState;
	/**解封时间*/
	@Excel(name = "解封时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "解封时间")
	private java.util.Date unsealTime;
	/**解封用户id*/
	@Excel(name = "解封用户id", width = 15)
    @ApiModelProperty(value = "解封用户id")
	private String unsealUserId;
	/**解封原因*/
	@Excel(name = "解封原因", width = 15)
    @ApiModelProperty(value = "解封原因")
	private String unsealReason;

	// ---------- Vo分界线 ----------

    /**解封用户姓名*/
    @Excel(name = "解封用户姓名", width = 15)
    @ApiModelProperty(value = "解封用户姓名")
    private String realname;

}
